// 主要定义默认的state
const defaultState = {
  myKey:1
}

// eslint-disable-next-line import/no-anonymous-default-export
export default (state=defaultState,action)=>{
  let newState = JSON.parse(JSON.stringify(state))
  switch(action.type){
    case "addKeyFn":
      newState.myKey++;
      break;
    default:
      break;
  }
  return newState;
}